package com.dpkit.adapter;

import com.dpkit.adapter.orm.definition.EntityDefinition;

import javax.sql.DataSource;
import java.util.List;
import java.util.Map;

/**
 * ORM适配器接口
 */
public interface OrmAdapter<T> {

    void save(String entityName, Map<String, Object> data);
    void batchSave(String entityName, List<Map<String, Object>> batchData);
    Class<T> generateEntityClass(EntityDefinition definition);
    DataSource getDataSource();

}
